<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});


Route::get('/hello', function () {
    return view('hello');
});

Route::get('/add',"TestController@addUser");

Route::get('/email',"TestController@getUserEmail");

//以下是认证API
Route::post('/auth/register',"AuthController@register");

Route::post("/auth/login","AuthController@login");

//以下是用户信息的API
Route::get("/user/getImg","UserDetailController@getUserImg");

Route::get('/user/getImgById',"UserDetailController@getUserImgById");

Route::get('/user/getDetail',"UserDetailController@getUserDetail");

Route::post('/user/updateDetail',"UserDetailController@updateDetail");

Route::post('/user/updateImg',"UserDetailController@updateImg");

//以下是关于委托的API
Route::get('/task/addTask',"TaskController@addTask");

Route::get('/task/getTaskById',"TaskController@getTaskById");

Route::get('/task/getTasks',"TaskController@getTasks");

Route::get('/task/getTasksByUser',"TaskController@getTasksByUser");

Route::get('task/updateTask',"TaskController@updateTask");

Route::get('task/deleteTaskById',"TaskController@deleteTaskById");

//以下是发布委托

